package cn.wu.org.domain;

import cn.wu.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    //名字
    private String username;
    //电话
    private String phone;
    //邮箱
    private String email;
    //年龄
    private Integer age;
    //状态
    private Integer state;
    //部门id
    private Long departmentId;

    //部门
    private Department dept;


    //儿子集合
    private List<Department> children=new ArrayList<>();

}
